/* Team Page Specific Styles */

/* Ensure CSS variables are available */
:root {
    --primary-red: #AC0000;
    --dark-red: #800000;
    --dark-bg: #1a0000;
    --text-white: #ffffff;
    --bg-white: #ffffff;
    --bg-cream: #f8f9fa;
    --accent-gold: #d4c789;
}

/* Team Hero Section */
.team-hero {
    background: linear-gradient(135deg, #AC0000 0%, #1a0000 100%);
    color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.team-hero .home-link {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
}

.team-hero .home-link a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.team-hero .home-link a:hover {
    background-color: var(--primary-red);
    transform: translateX(-5px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-indicator i {
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.team-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 199, 137, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(172, 0, 0, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.team-hero-content {
    position: relative;
    z-index: 2;
}

.team-hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.team-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Team Members Section */
.team-members {
    padding: 120px 0;
    background-color: var(--bg-white);
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-title {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    color: var(--primary-red);
}

.section-subtitle {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    margin-bottom: 25px;
    color: var(--dark-bg);
}

.section-subtitle::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background-color: var(--primary-red);
}

.section-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.team-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.team-category {
    margin-bottom: 20px;
}

.category-title {
    font-size: 1.8rem;
    color: var(--dark-bg);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.category-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-red);
}

.members-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.team-member {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-color: rgba(172, 0, 0, 0.1);
}

.member-image {
    position: relative;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.member-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.team-member:hover .member-social {
    opacity: 1;
    transform: translateY(0);
}

.member-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.member-social a:hover {
    background-color: var(--primary-red);
    color: white;
    transform: translateY(-3px);
}

.member-info {
    padding: 25px;
}

.member-info h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--dark-bg);
}

.member-title {
    font-size: 0.9rem;
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.member-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

/* Join Our Team Section */
.join-team {
    background-color: var(--bg-cream);
    padding: 100px 0;
    text-align: center;
}

.join-content {
    max-width: 900px;
    margin: 0 auto;
}

.join-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-bg);
}

.join-content > p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 50px;
    color: #555;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.benefit-item {
    background-color: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.benefit-item h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.benefit-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

/* Button Styles for Team Page */
.btn {
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-red);
    color: white;
    border: 2px solid var(--primary-red);
    padding: 15px 35px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(172, 0, 0, 0.3);
}

.btn-primary:hover {
    background: var(--dark-red);
    border-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(172, 0, 0, 0.4);
}

.btn-primary .btn-icon {
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
    transform: translateX(3px);
}

/* Simple Back to Top Button */
.simple-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-red);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.simple-back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.simple-back-to-top:hover {
    background-color: #800000;
    transform: translateY(-5px);
}

.simple-back-to-top:active {
    transform: scale(0.95);
}

/* Simple Footer */
.simple-footer {
    background-color: var(--dark-bg);
    color: var(--text-white);
    padding: 40px 0;
}

.simple-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.simple-footer .footer-logo {
    font-family: 'MuseoModerno', cursive;
    font-size: 1.8rem;
    font-weight: 700;
}

.simple-footer .copyright {
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.back-to-home {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.back-to-home:hover {
    background-color: var(--primary-red);
    transform: translateX(-5px);
}

.simple-footer .social-links {
    display: flex;
    gap: 15px;
}

.simple-footer .social-links a {
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.simple-footer .social-links a:hover {
    color: var(--primary-red);
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .team-hero h1 {
        font-size: 3rem;
    }
    
    .section-subtitle {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .team-hero {
        padding: 120px 20px 80px;
        height: auto;
        min-height: 100vh;
    }
    
    .team-hero h1 {
        font-size: 2.5rem;
    }
    
    .team-hero p {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .section-subtitle {
        font-size: 2rem;
    }
    
    .members-row {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .simple-footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-left, .footer-right {
        align-items: center;
    }
    
    .team-members {
        padding: 80px 20px;
    }
    
    .join-team {
        padding: 80px 20px;
    }
}

@media (max-width: 576px) {
    .team-hero h1 {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.8rem;
    }
    
    .members-row {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}